package com.lopo.pagehelper;

import com.lopo.bean.Bean;
import com.lopo.bean.TestBean;
import com.lopo.mapper.DateMapper;
import com.twilio.twiml.fax.Receive;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.List;

@RestController
public class ListController {

    @Autowired
    private ListService listService;

    @GetMapping("/public/dd")
    public Response<Object> getList(@RequestParam("pageNumber") Integer pageNumber, @RequestParam("pageSize") Integer pageSize) {
        Response<PageResponse<TestBean>> response =  listService.getList(pageNumber,pageSize);
//        listService.ddd(new PageResponse());
        return Response.success(response);
    }

}
